package resolver

// This file will be automatically regenerated based on the schema, any resolver implementations
// will be copied through when generating and any unknown code will be moved to the end.

import (
	"context"
	"gqlt2/graph/model"

	"github.com/dgryski/trifles/uuid"
)

func (r *queryResolver) SystemUser(ctx context.Context, userID string) (*model.SystemUser, error) {
	return &model.SystemUser{UserID: uuid.UUIDv4()}, nil
}

func (r *queryResolver) SystemUsers(ctx context.Context, query *model.SystemUsersQuery) (*model.SystemUserConnection, error) {
	return &model.SystemUserConnection{
		PageInfo: &model.PageInfo{Total: 100},
		Nodes:    []*model.SystemUser{&model.SystemUser{UserID: uuid.UUIDv4()}},
	}, nil
}
